@mixin bg($name) {
    background: url("./images/" + $name) no-repeat center top / 100%;
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.wrap {
    position: relative;
    width: 375px;
    height: 432px;
    @include bg("wrap.png");
}
.grid {
    position: absolute;
    bottom: 33px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 340px;
    height: 295px;
    @include bg("grid.png");
}
.grid_item {
    position: absolute;
    top: 20px;
    left: 22.5px;
    padding-top: 7.5px;
    width: 70px;
    height: 60px;
    background: #fff3cd;
    border-radius: 5px;
    color: #f8c346;
    z-index: 0;
    &::before {
        position: absolute;
        top: 5px;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 5px;
        background: white;
        content: "";
        z-index: -1;
    }
    &:nth-child(2),
    &:nth-child(9) {
        left: 97.5px;
    }
    &:nth-child(3),
    &:nth-child(8) {
        left: 172.5px;
    }
    &:nth-child(4),
    &:nth-child(5),
    &:nth-child(6),
    &:nth-child(7) {
        left: 247.5px;
    }
    &:nth-child(5),
    &:nth-child(12) {
        top: 85px;
    }
    &:nth-child(6),
    &:nth-child(11) {
        top: 150px;
    }
    &:nth-child(7),
    &:nth-child(8),
    &:nth-child(9),
    &:nth-child(10) {
        top: 215px;
    }
}
.grid_item_active {
    background: #FFD440;
    color: #CB3C00;
    &::before {
        background: #fcf001;
    }
}
.grid_img {
    display: block;
    margin: 0 auto;
    width: 35px;
    height: 35px;
}
.grid_coin {
    margin-top: 3px;
    height: 10px;
    line-height: 10px;
    font-size: 10px;
    text-align: center;
}
.grid_num_text {
    position: absolute;
    top: 93px;
    left: 105px;
    height: 14px;
    line-height: 14px;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
}
.grid_num_box1,
.grid_num_box2,
.grid_num_box3 {
    position: absolute;
    top: 90px;
    width: 18px;
    height: 20px;
    line-height: 20px;
    background: #ffffff;
    border-radius: 4px;
    font-size: 14px;
    color: #f66924;
    text-align: center;
    overflow: hidden;
}
.grid_num_box1 {
    left: 171px;
    @for $i from 0 through 9 {
        .grid_num_list#{$i} {
            transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
            transform: translateY(-20px * $i - 200px);
        }
    }
}
.grid_num_box2 {
    left: 194px;
    @for $i from 0 through 9 {
        .grid_num_list#{$i} {
            transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
            transform: translateY(-20px * $i - 300px);
        }
    }
}
.grid_num_box3 {
    left: 217px;
    @for $i from 0 through 9 {
        .grid_num_list#{$i} {
            transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
            transform: translateY(-20px * $i - 400px);
        }
    }
}
.grid_num_item {
    width: 18px;
    height: 20px;
}
.grid_dial_btn {
    position: absolute;
    top: 115px;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding-top: 30px;
    width: 145px;
    height: 95px;
    @include bg("grid_dial_btn.png");
    text-align: center;
    cursor: pointer;
    > div:nth-child(1) {
        height: 16px;
        line-height: 16px;
        font-size: 16px;
        color: #ffffff;
    }
    > div:nth-child(2) {
        margin-top: 8px;
        font-size: 12px;
        color: #fada33;
        text-align: center;
        line-height: 12px;
    }
}
// 领取弹窗
.receive {
    padding: 118px 0 75px;
    width: 305px;
    @include bg("receive_gift_bg.png");
}
.receive_gift_img {
    display: block;
    margin: 0 auto;
    width: 120px;
    height: 120px;
}
.receive_gift_name {
    margin-top: 52px;
    line-height: 23px;
    font-size: 16px;
    color: #ffffff;
    text-align: center;
    letter-spacing: 1px;
}
.receive_sure_btn {
    margin: 40px auto 0;
    width: 100px;
    height: 35px;
    line-height: 35px;
    @include bg("receive_sure_btn.png");
    font-size: 16px;
    color: #ffffff;
    letter-spacing: 0.8px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(187, 85, 0, 0.75);
    cursor: pointer;
}
